//
// Created by jiang on 2021/12/11.
//

#include <pwm.h>
#include "adcollect.h"
#include "adc.h"
#include "string.h"

adc_t adc;

inline void ADC_Init(adc_t *pHandle) {
    memset(pHandle->adcValue, 0, sizeof(pHandle->adcValue));
}


inline void ADC_Start(adc_t *pHandle) {
    HAL_ADC_Start_DMA(&hadc, (uint32_t *) &(pHandle->adcValue), sizeof(pHandle->adcValue) / sizeof(uint16_t));
}




